package com.server.questionbank.snframe.service.QuestionBank.Impl;

import com.server.questionbank.snframe.domain.QuestionBank.Knowledge;
import com.server.questionbank.snframe.mapper.QuestionBank.KnowledgeMapper;
import com.server.questionbank.snframe.service.QuestionBank.KnowledgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KnowledgeServiceImpl implements KnowledgeService {

    @Autowired
    private KnowledgeMapper knowledgeMapper;
    @Override
    public List<Knowledge> getByCourseId() {
        return knowledgeMapper.findByCourseId();
    }
}
